<?php 
/*
* ----------------------------------------------------------------------------------------------------
* Metaboxes for Portfolio
* @PACKAGE BY TT
* ----------------------------------------------------------------------------------------------------
*/
$config = array(
	'title' => esc_html__('Portfolio Settings','TT'),
	'id' => 'portfolio_meta_boxes',
	'pages' => array('portfolio'),
	'callback' => '',
	'context' => 'normal',
	'priority' => 'high',
);


$options = array(

	array(
			'name' => esc_html__('Portfolio Type', 'TT'),
			'type' => 'title',
			'desc' => esc_html__('Choose the type of portfolio post you wish to display.','TT'),
	),

	array(
			'name' => esc_html__('Types','TT'),
			'id' => 'portfolio_type',
			'std' => '1',
			'options' => array(
				'1' => esc_html__('Image','TT'),
				'2' => esc_html__('Video','TT'),
				'3' => esc_html__('Direct link','TT'),
				
			),
			'type' => 'select',
	),
	array(
			'name' => esc_html__('Image', 'TT'),
			'type' => 'title',
			'desc' => esc_html__('If you choose the portfolio type as image, you should set the image options here.','TT'),
	),

	array(
			'name' => esc_html__('Upload image','TT'),
			'desc' => esc_html__('Upload image. (e.g. 500)','TT'),
			'id' => 'image_upload_portfolio',
			'std' => '',
			'size' => '80',
			'type' => 'upload',
	),
	array(
			'name' => esc_html__('Direct url', 'TT'),
			'type' => 'title',
			'desc' => esc_html__('If you choose the portfolio type as direct url, you should set the direct url options here.','TT'),
	),
	array(
			'name' => esc_html__('Direct url','TT'),
			'desc' => esc_html__('The url direct','TT'),
			'id' => 'direct_url_portfolio',
			'std' => '',
			'size' => '80',
			'type' => 'text',
	),
	array(
			'name' => esc_html__('Url target type','TT'),
			'desc' => esc_html__('The url direct.(Trong truong hop lightbox disable)','TT'),
			'id' => 'direct_url_target_portfolio',
			'std' => '',
			'type' => 'option',
			'options' => array(
					  'open_in_new_tab' => 'Open in new tab ',
					  'open_in_current_tab' => 'Open in current tab ', 
			)
	),
	
	array(
			'name' => esc_html__('Video', 'TT'),
			'type' => 'title',
			'desc' => esc_html__('If you choose the portfolio type as video, you should set the video options here.','TT'),
	),
	array(
			'name' => esc_html__('Video Style','TT'),
			'desc' => esc_html__('Select Video Style','TT'),
			'type' => 'select',
			'id' => 'video_style',
			'std' => 'youtube',
			'options' => array(
					  'youtube' => esc_html__('Youtube video'),
					  'vimeo' => esc_html__('Vimeo video'),
					  'embed' => esc_html__('Embedcode'),
			),
	),


	array(
			'name' => esc_html__('Youtube ID','TT'),
			'desc' => esc_html__('If you select youtube style,just add vimeo id.','TT'),
			'id' => 'youtube_id',
			'std' => '',
			'type' => 'text',
	),
	array(
			'name' => esc_html__('Vimeo ID','TT'),
			'desc' => esc_html__('If you select vimeo style,just add vimeo id.','TT'),
			'id' => 'vimeo_id',
			'std' => '',
			'type' => 'text',
	),
	array(
			'name' => esc_html__('Embedded Code','TT'),
			'desc' => __('If you are using something other than self hosted video such as Youtube or Vimeo, paste the embed code here. Width is best at 990px with any height.','TT'),
			'id' => 'video_embed_code',
			'rows' => '6',
			'std' => '',
			'class' => 'noborder',
			'type' => 'textarea',
	),

);

new meta_boxes_generator($config,$options);

?>